﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using StickFigureKarateFighterClassLibrary;
using System.IO;
using SilverlightContrib.Controls;

namespace StickFigureKarateFighterProject
{
    public partial class Page : UserControl
    {

        public Page()
        {
            InitializeComponent();
        }

        private void ColorPicker1_SelectedColorChanged(object sender, SelectedColorEventArgs args)
        {
            if (stickFigureFighter != null)
                stickFigureFighter.changeColor(args.SelectedColor);
        }

        private void ThrowKickButton_Click(object sender, RoutedEventArgs e)
        {
            stickFigureFighter.ThrowSideKick();
        }

        private void ThrowBackFistButton_Click(object sender, RoutedEventArgs e)
        {
            stickFigureFighter.ThrowBackFist();
        }

        private void DoJumpKick_Click(object sender, RoutedEventArgs e)
        {
            stickFigureFighter.DoJumpKick();
        }

    }
}
